﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 第二次作业
{
    public class ATM
    {
        public int id { get; set; }
       

        public void deposite(Account account, double money)
        {
            account.deposite(money);
        }

        public void withdrow(Account account, double money)
        {
            account.withdrow(money);
        }

        public void payback(TrustAccount taccount, double money)
        {
            taccount.payback(money);
        }
    }
}
